package com.shop.enums;

import lombok.Getter;

/**
 * description: 订单状态
 *
 * @author zhaoxiaozhao（xiaozhao.zhao@ucarinc.com）
 * @version 1.0
 * @date 2018/10/15 11:48
 **/
@Getter
public enum OrderMasterStatuEnum {
    ORDER_DELETE(2,"已删除"),
    ORDER_NEW(0,"已新建"),
    ORDER_FINDSH(1,"已完成"),;

    private Integer code;
    private String message;

    OrderMasterStatuEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public boolean equals(Integer code){
        if(null == code){
            return false;
        }
        if(this.code.equals(code)){
            return true;
        }
        return false;
    }

}
